import React, { Component } from 'react'
import axios from 'axios'

interface Iprops{
    location:any
}

export default class Detail extends Component<Iprops> {
    componentDidMount(){
        console.log(this.props.location.state)
        // axios.get('/api/detail',{data:{id:this.props.match.params.id}}).then(res =>{
        //     console.log(res)
        // })
    }
    render() {
        return (
            <div>
                Detail
            </div>
        )
    }
}
